package com.powernode.feign;

import com.powernode.domain.MemberAddr;
import com.powernode.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author RenBoQing
 * @date 2024年08月29日 22:24
 * @Description 订单调用 会员服务的feign接口
 */
@FeignClient(value ="member-service" )
public interface OrderMemberFeign {
   /*
    * 远程调用
    * @author RenBoQing
    * @date 2024/9/1 11:13
    * @param addrId
    * @return com.powernode.model.Result<com.powernode.domain.MemberAddr>
    */
    @GetMapping("/p/address/getMemberAddrById")
    public Result<MemberAddr> getMemberAddrById(@RequestParam Long addrId);
    /*
     * 远程调用
     * @author RenBoQing
     * @date 2024/9/1 11:13
     * @param openId
     * @return com.powernode.model.Result<java.lang.String>
     */
    @GetMapping("admin/user/getNickNameByOpenId")
    public Result<String> getNickNameByOpenId(@RequestParam String openId );
}
